﻿<UserControl x:Class="GroupChallengeWP7.Views.JoinView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:vm="clr-namespace:GroupChallengeWP7"
             xmlns:GroupChallengeWP7_ValueConverters="clr-namespace:GroupChallengeWP7.ValueConverters"
             mc:Ignorable="d"
             d:DesignHeight="480"
             d:DesignWidth="480">
    <UserControl.Resources>
        <GroupChallengeWP7_ValueConverters:OppositeValueConverter x:Key="OppositeValueConverter" />
    </UserControl.Resources>
    <UserControl.FontFamily>
        <StaticResource ResourceKey="PhoneFontFamilyNormal" />
    </UserControl.FontFamily>
    <UserControl.FontSize>
        <StaticResource ResourceKey="PhoneFontSizeNormal" />
    </UserControl.FontSize>
    <Grid x:Name="LayoutRoot"
          d:DataContext="{d:DesignData /SampleData/MainViewModelSampleData.xaml}">
        <Grid.Resources>
            <Style x:Key="FormTextBlock"
                   TargetType="TextBlock">
                <Setter Property="VerticalAlignment"
                        Value="Center" />
                <Setter Property="HorizontalAlignment"
                        Value="Right" />
            </Style>
            <Style x:Key="FormTextBox"
                   TargetType="TextBox">
                <Setter Property="VerticalAlignment"
                        Value="Center" />
                <Setter Property="HorizontalAlignment"
                        Value="Stretch" />
            </Style>
        </Grid.Resources>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="172" />
            <ColumnDefinition Width="284" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="85" />
            <RowDefinition Height="85" />
            <RowDefinition Height="75" />
            <RowDefinition Height="77" />
            <RowDefinition Height="91" />
            <RowDefinition Height="279" />
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0"
                    Grid.Column="0"
                    Orientation="Horizontal"
                    HorizontalAlignment="Right">
            <TextBlock Style="{StaticResource FormTextBlock}"
                       Foreground="Red"
                       Margin="3"
                       Text="*" />
            <TextBlock Grid.Row="0"
                       Grid.Column="0"
                       Style="{StaticResource FormTextBlock}"
                       Text="Host" />
        </StackPanel>
        <TextBox Grid.Row="0"
                 Grid.Column="1"
                 x:Name="HostServerTextBox"
                 Style="{StaticResource FormTextBox}"
                 Text="{Binding HostServer, Mode=TwoWay}"
                 TextChanged="TextChanged" />
        <StackPanel Grid.Row="1"
                    Grid.Column="0"
                    Orientation="Horizontal"
                    HorizontalAlignment="Right">
            <TextBlock Style="{StaticResource FormTextBlock}"
                       Foreground="Red"
                       Margin="3"
                       Text="*" />
            <TextBlock Grid.Row="1"
                       Grid.Column="0"
                       Style="{StaticResource FormTextBlock}"
                       Text="Player Id" />
        </StackPanel>
        <TextBox Grid.Row="1"
                 Grid.Column="1"
                 x:Name="PlayerIdTextBox"
                 Style="{StaticResource FormTextBox}"
                 Text="{Binding PlayerId, Mode=TwoWay}"
                 TextChanged="TextChanged" />
        <StackPanel Grid.Row="2"
                    Grid.Column="0"
                    Orientation="Horizontal"
                    HorizontalAlignment="Right">
            <TextBlock Style="{StaticResource FormTextBlock}"
                       Foreground="Red"
                       Margin="3"
                       Text="*" />
            <TextBlock Style="{StaticResource FormTextBlock}"
                       Text="Nick Name" />
        </StackPanel>
        <TextBox Grid.Row="2"
                 Grid.Column="1"
                 x:Name="NickNameTextBox"
                 Style="{StaticResource FormTextBox}"
                 Text="{Binding NickName, Mode=TwoWay}"
                 TextChanged="TextChanged" />
        <TextBlock Grid.Row="3"
                   Grid.Column="0"
                   Style="{StaticResource FormTextBlock}"
                   Text="Full Name" />
        <TextBox Grid.Row="3"
                 Grid.Column="1"
                 x:Name="FullNameTextBox"
                 Style="{StaticResource FormTextBox}"
                 Text="{Binding FullName, Mode=TwoWay}"
                 TextChanged="TextChanged" />
    </Grid>
</UserControl>
